package com.org.javabody.breakapi;

public class BreakDemo {

	public void show() {
		String[] str = {"1","2","3","4","5","6","7","8","9"};
		inner:
		for(int i=0; i <str.length; i++) {
			if(i==4) {		//i=4,直接结束本循环，中断下一个循环(跳出for循环)			 
				break inner; //执行到这一步就不执行了，for循环中断
			}
			System.out.print(str[i]);
		}
	}

	public static void main(String[] args) {
		BreakDemo bd = new BreakDemo();
		bd.show();

	}

}